<%- include ../public/page_head.html %>
<div class="container-fluid">
            <div class="panel panel-default">
			    <div class="panel-heading">
                  修改管理员
                </div>
                <div class="panel-body">
                    <div class="table-responsive input-form">
                        <form action="/admin/manager/doEdit" method="post">
                            <input type="hidden" name="_csrf" value="<%=csrf%>">
                            <input type="hidden" name="_id" value="<%=manager[0]._id%>"/>
                            <ul>
                                <li>  管理员名称: <input type="text" name="username" value="<%=manager[0].username%>"/></li><br/>
<!--                                <li>  原始密码:<input type="text" name="password"  onblur="app.chechPwd(this,'Admin','password','<%=manager[0]._id%>')" /></li><br/>-->
                                <li>  管理员密码:<input type="text" name="password"   /></li><br/>
                                <li>  管理员电话: <input type="text" name="mobile"   value="<%=manager[0].mobile%>" /></li><br/>
                                <li>  管理员邮箱: <input type="text" name="email"    value="<%=manager[0].email%>"/></li><br/>
                                <li>  管理员角色:
                                    <select name="role_id" id="role_id">
                                        <% for(var i=0;i<list.length;i++) {%>
                                           <% if(manager[0].role_id.toString() ==list[i]._id.toString() ){ %>
                                        <option value="<%=list[i]._id%>" selected> <%=list[i].title%> </option>
                                           <% }else{ %>
                                        <option value="<%=list[i]._id%>" > <%=list[i].title%> </option>
                                           <%}%>
                                        <% }%>
                                    </select>
                                </li>
                                <li>
                                    <br/>
                                    <button type="submit"   class="btn btn-primary">提交</button>
                                </li>
                            </ul>
                        </form>
                    </div>
                </div>
            </div>
        </div>
</body>
</html>
